package com.baiyangtx.lingerweather.adapt;

public class CityKey {
	public static final String CITY_CODE = "city_code" ;
	public static final String CITY_NAME = "city_name" ;
	
	// yyyy-mm-dd hh:mm
	public static final String SYNC_TIME = "sync_time" ;
	
	public static final String FEELING = "feeling" ;
	public static final String FEELING_DESCRIPTION = "feeling_description" ;
	
	public static final String WIND = "wind" ;
	public static final String WIND_POWER = "wind_power" ;
	
	public static final String RECENT_WEATHER = "real_weather" ;
	public static final String REAL_TEMPERATURE = "real_temperature" ;
	
	
	public static final String FUTURE_WEATHER_NOON = "future_weather_noon" ;
	public static final String FUTURE_WEATHER_NIGHT = "future_weather_night" ;
	
	public static final String FUTURE_TEMP_HIGHT = "future_temperature_hight" ;
	public static final String FUTURE_TEMP_LOW = "future_temperature_low" ;
	
	public static final String SPIT = ";" ;
	
	public static final String WEATHER_CLOUDY = "cloudy" ;
	public static final String WEATHER_OVERCAST = "overcast" ;
	public static final String WEATHER_SUNNY = "sunny" ;
	public static final String WEATHER_WINDY = "windy" ;
	public static final String WEATHER_FOG = "fog" ;
	public static final String WEATHER_HARD_RAIN = "hard_rain" ;
	public static final String WEATHER_HEAVY_RAIN = "heavy_rain" ;
	public static final String WEATHER_HEAVY_SNOW = "heavy_snow" ;
	public static final String WEATHER_LIGHT_RAIN = "light_rain" ;
	public static final String WEATHER_LIGHT_SNOW = "light_snow" ;
	
	
	
	
	public static final String FORMAT = "yyyy-MM-dd HH:mm:ss" ;
	
	
	public static String weatherToChinese(String weather){
		String key = null ;
		final String CLOUDY = "多云" ;
		final String OVERCAST = "阴天" ;
		final String SUNNY = "晴天" ;
		final String WINDY = "有风" ;
		final String FOG = "有雾" ;
		final String HARD_RAIN = "暴雨" ;
		final String HEAVY_RAIN = "大雨" ;
		final String HEAVY_SNOW = "大雪" ;
		final String LIGHT_RAIN = "小雨" ;
		final String LIGHT_SNOW = "小雪" ;
		
		if( weather.equals(CityKey.WEATHER_CLOUDY )){
			key = CLOUDY ;
		}else if(weather.equals(CityKey.WEATHER_OVERCAST )) {
			key = OVERCAST ;
		}else if(weather.equals(CityKey.WEATHER_SUNNY )) {
			key = SUNNY ;
		}else if(weather.equals(CityKey.WEATHER_WINDY )) {
			key = WINDY ;
		}else if(weather.equals(CityKey.WEATHER_FOG )) {
			key = FOG ;
		}else if(weather.equals(CityKey.WEATHER_HARD_RAIN )) {
			key = HARD_RAIN ;
		}else if(weather.equals(CityKey.WEATHER_HEAVY_RAIN )) {
			key = HEAVY_RAIN ;
		}else if(weather.equals(CityKey.WEATHER_HEAVY_SNOW )) {
			key = HEAVY_SNOW ;
		}else if(weather.equals(CityKey.WEATHER_LIGHT_RAIN )) {
			key = LIGHT_RAIN ;
		}else if(weather.equals(CityKey.WEATHER_LIGHT_SNOW )) {
			key = LIGHT_SNOW ;
		}
		
		return key ;
	}
	
	
}
